'''
Python中元组的特性：其功能与列表类似，都可以用于存储多个元素，但是元组一旦定义，其数据就不能进行修改与删除了
10  20  30
0   1   2
'''

# Traceback (most recent call last):
#   File "E:\PycharmProjects\python\7_14\03-Python中元组的特性.py", line 8, in <module>
#     tuple2[2] = 40
# TypeError: 'tuple' object does not support item assignment

tuple2 = (10, 20, 30)
tuple2[2] = 40
print(tuple2)

